#ifndef MEM_POOL_H
#define MEM_POOL_H

#include "ThreadCache.h"

namespace memoryPoolV2 {
class MemoryPool {
public:
    static void *allocate(std::size_t size) {
        return ThreadCache::getInstance()->allocate(size);
    }

    static void deallocate(void *ptr, std::size_t size) {
        ThreadCache::getInstance()->deallocate(ptr, size);
    }
};
} // namespace memoryPoolV2

#endif